{% extends '@WebsiteBundle/layout/baselayout.html.twig' %}


{% block body_javascript %}
	{{ parent() }}
	{{ encore_entry_script_tags('website_user_fav') }}
{% endblock %}

{% block head_stylesheets %}
	{{ parent() }}
	{{ encore_entry_link_tags('website_user_fav') }}
{% endblock %}


{% block body_main %}
	{{ parent() }}
	<div class="page">
		{{ render(path('app_header', {"route":route})) }}
		<div class="page-wrapper">
			<div class="page-body">
				<div class="container-xl">
					<div class="row  row-cards">
						<div class="col-lg-2">
							{{ render(path('app_user_userNav', {route:route})) }}
						</div>
						<div class="col-lg-10">
							<div class="row row-deck row-cards">
									<div class="col-lg-12">
									<nav class="nav nav-underline">
										<a class="nav-link {% if type==1 %} active {% endif %}" href="{{ path('app_user_fav', {type:1}) }}">文章</a>
										<a class="nav-link {% if type==2 %} active {% endif %}" href="{{ path('app_user_fav', {type:2}) }}">教程</a>
										<a class="nav-link {% if type==3 %} active {% endif %}" href="{{ path('app_user_fav', {type:3}) }}">课程</a>
									</nav>
									</div>
								<div class="col-lg-12">
									{% if type==1 %}
										{% include '@WebsiteBundle/user/newsFav.html.twig' %}
									{% endif %}
									{% if type==2 %}
										{% include '@WebsiteBundle/user/tutorialFav.html.twig' %}
									{% endif %}
									{% if type==3 %}
										{% include '@WebsiteBundle/user/goodsFav.html.twig' %}
									{% endif %}
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
		{{ render(path('app_footer')) }}
	</div>
{% endblock %}
